Date--helpUsage: date [options] ... [+ format]Or: Date [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.SS]]Displays the current time in the given format, or sets the system date.-D,--date= string displays the time described by the specified string, not
The SS/ATOM format is easy to generate. The trouble is that the date format is generated (RSS => pubDate, ATOM => created ).We found that PHP Date provides the required global variables: (PHP 5.1.1 will support these global variables later)Echo DATE_
Display time is a commonly used command. It is often used to display date-related file names or times in shell scripts. The date command is used in both Linux and Windows.
Date command usage in Linux
Date [Option]… [+ Format]
Date [-u | -- UTC | -
Help information for the date command[root@localhost source]# date--helpusage: date [options] ... [+ format]or: Date [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.SS]]Displays the current time in the given format, or sets the system date. -D,--date=
Date command Arguments
-d,–date=string Displays the time specified by STRING-f,–file=datefile A similar –date parameter to display the time per line in a Datefile file-itimespec,–iso-8601[=timespec] Displays the date/time in ISO 8601 format.
Shell: common date methods
Obtain the time string in LinuxCommand date# Output the current time of 23 days in the format of yyyymmdd$ Date + % Y % m % d-date = '23 days ago'
$ Date-uThu Sep 28 09:32:04 UTC 2006
$ Date-RThu, 28 Sep 2006 17:32:28 + 080
Obtain the time string in LinuxCommand date# Output the current time of 23 days in the format of yyyymmdd$ Date + % Y % m % d -- date = '23 days ago'
$ Date-uThu Sep 28 09:32:04 UTC 2006
$ Date-RThu, 28 Sep 2006 17:32:28 + 0800
# Testing one
Display time is a common command, and it is often used in writing shell scripts to display date-related file names or times. The date command is both Linux and Windows.The use of the date command under Linux
Date [OPTION] ... [+format]
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.